/********************************************************************************
** Form generated from reading UI file 'bank.ui'
**
** Created by: Qt User Interface Compiler version 6.1.3
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_BANK_H
#define UI_BANK_H
#include "bank.h"

QT_BEGIN_NAMESPACE

class Ui_bank: public QWidget
{
public:
    QTextBrowser *textBrowser;
    QLineEdit *lineEdit;
    QLineEdit *lineEdit_2;
    QLineEdit *lineEdit_3;
    QPushButton *pushButton;
    QLabel *label;
    QLabel *label_2;
    QLabel *label_3;
    BBank* b;
    CBank* c;
    GBank* g;
    friend int total(Bank&, Bank&, Bank&);
    void Total()
    {
        b->change(std::stoi(lineEdit->text().toStdString()));
        c->change(std::stoi(lineEdit_2->text().toStdString()));
        g->change(std::stoi(lineEdit_3->text().toStdString()));
        textBrowser->setText(QString::fromStdString(std::to_string(total(*b, *c, *g))));
    }
    void setupUi(QWidget *Form, BBank* B, CBank* C, GBank* G)
    {
        if (Form->objectName().isEmpty())
            Form->setObjectName(QString::fromUtf8("Form"));
        Form->resize(466, 92);
        textBrowser = new QTextBrowser(Form);
        textBrowser->setObjectName(QString::fromUtf8("textBrowser"));
        textBrowser->setGeometry(QRect(90, 50, 151, 31));
        lineEdit = new QLineEdit(Form);
        lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
        lineEdit->setGeometry(QRect(70, 20, 71, 20));
        lineEdit_2 = new QLineEdit(Form);
        lineEdit_2->setObjectName(QString::fromUtf8("lineEdit_2"));
        lineEdit_2->setGeometry(QRect(210, 20, 71, 20));
        lineEdit_3 = new QLineEdit(Form);
        lineEdit_3->setObjectName(QString::fromUtf8("lineEdit_3"));
        lineEdit_3->setGeometry(QRect(360, 20, 71, 20));
        pushButton = new QPushButton(Form);
        pushButton->setObjectName(QString::fromUtf8("pushButton"));
        pushButton->setGeometry(QRect(270, 50, 111, 31));
        label = new QLabel(Form);
        label->setObjectName(QString::fromUtf8("label"));
        label->setGeometry(QRect(10, 20, 61, 16));
        label_2 = new QLabel(Form);
        label_2->setObjectName(QString::fromUtf8("label_2"));
        label_2->setGeometry(QRect(150, 20, 61, 16));
        label_3 = new QLabel(Form);
        label_3->setObjectName(QString::fromUtf8("label_3"));
        label_3->setGeometry(QRect(290, 20, 61, 16));

        retranslateUi(Form);
        b = B; c = C; g = G;
        QObject::connect(pushButton, &QPushButton::clicked, this, &Ui_bank::Total);
        QMetaObject::connectSlotsByName(Form);
    } // setupUi

    void retranslateUi(QWidget *Form)
    {
        Form->setWindowTitle(QCoreApplication::translate("Form", "Form", nullptr));
        pushButton->setText(QCoreApplication::translate("Form", "\350\256\241\347\256\227\346\200\273\344\275\231\351\242\235", nullptr));
        label->setText(QCoreApplication::translate("Form", "\351\223\266\350\241\214A\344\275\231\351\242\235", nullptr));
        label_2->setText(QCoreApplication::translate("Form", "\351\223\266\350\241\214B\344\275\231\351\242\235", nullptr));
        label_3->setText(QCoreApplication::translate("Form", "\351\223\266\350\241\214C\344\275\231\351\242\235", nullptr));
    } // retranslateUi

};

namespace Ui {
    class bank: public Ui_bank {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_BANK_H
